package com.hisoft.mapper;

import com.hisoft.pojo.User;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

/**
 * @program: jwt_token_demo01
 * @description:
 * @author: wlg
 * @create: 2021-08-13 15:00:47
 **/
@Repository
public class UserMapper {

    public User selectUserByUserCode(String userCode){
        //造一条数据
        User user = new User();
        user.setUserCode(userCode);
        user.setUserPassword("1234567");
        return user;
    }

    public List<User> getUserList(){
        List<User> list = new ArrayList();
        list.add(new User("admin","1234567"));
        list.add(new User("admin2","1234567"));
        list.add(new User("admin3","1234567"));
        list.add(new User("admin4","1234567"));
        list.add(new User("admin5","1234567"));
        return list;
    }
}
